﻿using Game.Actions;
using Game.Command;
using Game.Common;

namespace DebugPlugin
{
    public class ShowAllCommand : GameCommand
    {
        public override string Name
        {
            get { return "ShowAll"; }
        }

        protected override ActionResult Execute(
            GameTurn turn,
            Context context)
        {
            foreach (var f in context.GameMapView.ViewFields)
            {
                f.IsVisible = true;
            }
            
            return new ActionResult(0, "");
        }

    }
}
